import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
const state = {
  userid: localStorage.getItem("userid")
}
const mutations = {
  userid: (state, userid) => {
    state.userid = userid
    localStorage.setItem("userid", userid)
  }
}
const actions = {}
const getters = {

}
export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations
})
